package com.airikeji.hr.service.impl;

import com.airikeji.hr.domain.MessageResend;
import com.airikeji.hr.mapper.MessageResendMapper;
import com.airikeji.hr.service.MessageResendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author huangrui
 * @Date 2021/7/16 10:42
 * @Version 1.0
 */
@Service
public class MessageResendServiceImpl implements MessageResendService {

    @Autowired
    private MessageResendMapper messageResendMapper;

    @Override
    public List<MessageResend> queryAll() {
        return messageResendMapper.queryAll();
    }

    @Override
    public MessageResend queryIndividual(String id) {
        return messageResendMapper.queryIndividual(id);
    }

    @Override
    public void deleteById(String id) {
        messageResendMapper.deleteById(id);
    }

    @Override
    public void insertResendMessage(MessageResend messageResend) {
        messageResendMapper.insertResendMessage(messageResend);
    }

    @Override
    public MessageResend queryById(String id) {
        return messageResendMapper.queryById(id);
    }

    @Override
    public void updateResendNum(String id, Integer resendNum) {
        messageResendMapper.updateResendNum(id, resendNum);
    }


}
